package com.action;

import com.man.BookCtrl;
import com.std.Book;

public class AdminBookDetailAction {
	private int 	bookId;
	private Book 	book;

	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public int getBookId() {
		return bookId;
	}

	public void setBookId(int bookId) {
		this.bookId = bookId;
	}
	
	public String execute() {
		BookCtrl bookCtrl=new BookCtrl();
		book=bookCtrl.getItem(bookId);
		bookCtrl.close();
		return "success";
	}
}
